﻿using System;

namespace System.Windows.Forms
{
	internal static class ControlExtensions
	{
		internal static void Invoke(this Control control, Action action)
		{
			if (control.InvokeRequired)
				control.Invoke(action);
			else
				action.Invoke();
		}
	}
}
